package com.liyk.shop.domain.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "t_product_kill_order")
public class ProductKillOrder implements Serializable {
    /**
     * 订单id
     */
    @Id
    @Column(name = "id")
    private String id;

    /**
     * 秒杀商品id
     */
    @Column(name = "kill_product_id")
    private Integer killProductId;

    /**
     * 用户id
     */
    @Column(name = "user_id")
    private Integer userId;

    /**
     * 用户手机号
     */
    @Column(name = "user_phone")
    private String userPhone;

    /**
     * 用户邮箱
     */
    @Column(name = "user_email")
    private String userEmail;

    /**
     * 状态标识 -1 无效 0成功 1 已付 2未付款
     */
    @Column(name = "`state`")
    private Byte state;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;
}
